home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 18 / CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso / CUCD / Online / CNetDemo / cnet / sdk / include / minrexx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-09-04  |  2.8 KB  |  65 lines

  1.  
  2. // Some macro definitions                                              
  3.  
  4. #define RXSNAME  "rexxsyslib.library"
  5. #define RXSID    "rexxsyslib 1.06 (07 MAR 88)\n"
  6. #define RXSDIR   "REXX"
  7. #define RXSTNAME "ARexx"
  8.  
  9. // Global flag bit definitions for RexxMaster                          
  10. #define RLFB_TRACE RTFB_TRACE          // interactive tracing?         
  11. #define RLFB_HALT  RTFB_HALT           // halt execution?              
  12. #define RLFB_SUSP  RTFB_SUSP           // suspend execution?           
  13. #define RLFB_STOP  6                   // deny further invocations     
  14. #define RLFB_CLOSE 7                   // close the master             
  15.  
  16. #define RLFMASK    (1<<RLFB_TRACE) | (1<<RLFB_HALT) | (1<<RLFB_SUSP)
  17.  
  18. // Initialization constants                                            
  19. #define RXSVERS    34                  // main version                 
  20. #define RXSREV     7                   // revision                     
  21. #define RXSALLOC   0x800000            // maximum allocation           
  22. #define RXSCHUNK   1024                // allocation quantum           
  23. #define RXSNEST    32                  // expression nesting limit     
  24. #define RXSTPRI    0                   // task priority                
  25. #define RXSSTACK   4096                // stack size                   
  26. #define RXSLISTH   5                   // number of list headers       
  27.  
  28. // Character attribute flag bits used in REXX.                         
  29. #define CTB_SPACE   0                  // white space characters       
  30. #define CTB_DIGIT   1                  // decimal digits 0-9           
  31. #define CTB_ALPHA   2                  // alphabetic characters        
  32. #define CTB_REXXSYM 3                  // REXX symbol characters       
  33. #define CTB_REXXOPR 4                  // REXX operator characters     
  34. #define CTB_REXXSPC 5                  // REXX special symbols         
  35. #define CTB_UPPER   6                  // UPPERCASE alphabetic         
  36. #define CTB_LOWER   7                  // lowercase alphabetic         
  37.                                                                       
  38. // Attribute flags                                                     
  39. #define CTF_SPACE   (1 << CTB_SPACE)
  40. #define CTF_DIGIT   (1 << CTB_DIGIT)
  41. #define CTF_ALPHA   (1 << CTB_ALPHA)
  42. #define CTF_REXXSYM (1 << CTB_REXXSYM)
  43. #define CTF_REXXOPR (1 << CTB_REXXOPR)
  44. #define CTF_REXXSPC (1 << CTB_REXXSPC)
  45. #define CTF_UPPER   (1 << CTB_UPPER)
  46. #define CTF_LOWER   (1 << CTB_LOWER)
  47.  
  48. //
  49. //   Maximum messages that can be pending, and the return codes
  50. //   for two bad situations.
  51. //
  52. #define MAXRXOUTSTANDING (300)
  53. #define RXERRORIMGONE (100)
  54. #define RXERRORNOCMD (30)
  55.  
  56. //
  57. //   This is the association list you build up (statically or
  58. //   dynamically) that should be terminated with an entry with
  59. //   NULL for the name . . .
  60. //
  61. struct rexxCommandList {
  62.    char *name ;
  63.    char *(*userdata)() ;
  64. };
  65.